package com.mvm.store.service.impl;

import org.springframework.transaction.annotation.Transactional;

import com.mvm.store.domain.obj.Client;
import com.mvm.store.service.ClientService;
import com.mvm.store.service.base.AbstractServiceImpl;

@Transactional
public class ClientServiceImpl extends AbstractServiceImpl<Client, Integer> implements ClientService {

	@Override
	public void save(Client client) {

		if (client.getId() == null) {
			// new
			getDao().save(client);
		} else {
			// update
			getDao().update(client);
		}
	}

}
